import { Injectable } from '@angular/core';

import { HttpService } from './HttpService';

@Injectable()
export class HomeService {
  constructor (
    private httpService: HttpService
  ) {}

  save(data) {
    let url = '/api/build/save';
    return this.httpService.httpPostNoAuth(url, data);
  }

  getRoomList(data) {
    let url = '/api/home/roomList';
    return this.httpService.httpPostNoAuth(url, data);
  }

  getBuildList(data) {
    let url = '/api/home/buildList';
    return this.httpService.httpPostNoAuth(url, data);
  }
}
